<?php

namespace Entities;

use Doctrine\ORM\Mapping as ORM;

/**
 * Entities\Tree
 */
class Tree
{
    /**
     * @var datetime $plantdate
     */
    private $plantdate;

    /**
     * @var datetime $felldate
     */
    private $felldate;

    /**
     * @var integer $stemdiameter
     */
    private $stemdiameter;

    /**
     * @var integer $height
     */
    private $height;

    /**
     * @var smallint $multitrunk
     */
    private $multitrunk;

    /**
     * @var smallint $valuable
     */
    private $valuable;

    /**
     * @var smallint $iconic
     */
    private $iconic;

    /**
     * @var integer $number
     */
    private $number;

    /**
     * @var Entities\Employee
     */
    private $employee;

    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var Entities\Treespecie
     */
    private $treespecie;

    /**
     * @var Entities\Location
     */
    private $location;

    /**
     * @var Entities\Soil
     */
    private $soil;

    /**
     * @var \Doctrine\Common\Collections\ArrayCollection
     */
    private $images;

    public function __construct()
    {
        $this->images = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Set plantdate
     *
     * @param datetime $plantdate
     * @return Tree
     */
    public function setPlantdate($plantdate)
    {
        $this->plantdate = $plantdate;
        return $this;
    }

    /**
     * Get plantdate
     *
     * @return datetime
     */
    public function getPlantdate()
    {
        return $this->plantdate;
    }

    /**
     * Set felldate
     *
     * @param datetime $felldate
     * @return Tree
     */
    public function setFelldate($felldate)
    {
        $this->felldate = $felldate;
        return $this;
    }

    /**
     * Get felldate
     *
     * @return datetime
     */
    public function getFelldate()
    {
        return $this->felldate;
    }

    /**
     * Set stemdiameter
     *
     * @param integer $stemdiameter
     * @return Tree
     */
    public function setStemdiameter($stemdiameter)
    {
        $this->stemdiameter = $stemdiameter;
        return $this;
    }

    /**
     * Get stemdiameter
     *
     * @return integer
     */
    public function getStemdiameter()
    {
        return $this->stemdiameter;
    }

    /**
     * Set height
     *
     * @param integer $height
     * @return Tree
     */
    public function setHeight($height)
    {
        $this->height = $height;
        return $this;
    }

    /**
     * Get height
     *
     * @return integer
     */
    public function getHeight()
    {
        return $this->height;
    }

    /**
     * Set multitrunk
     *
     * @param smallint $multitrunk
     * @return Tree
     */
    public function setMultitrunk($multitrunk)
    {
        $this->multitrunk = $multitrunk;
        return $this;
    }

    /**
     * Get multitrunk
     *
     * @return smallint
     */
    public function getMultitrunk()
    {
        return $this->multitrunk;
    }

    /**
     * Set valuable
     *
     * @param smallint $valuable
     * @return Tree
     */
    public function setValuable($valuable)
    {
        $this->valuable = $valuable;
        return $this;
    }

    /**
     * Get valuable
     *
     * @return smallint
     */
    public function getValuable()
    {
        return $this->valuable;
    }

    /**
     * Set iconic
     *
     * @param smallint $iconic
     * @return Tree
     */
    public function setIconic($iconic)
    {
        $this->iconic = $iconic;
        return $this;
    }

    /**
     * Get iconic
     *
     * @return smallint
     */
    public function getIconic()
    {
        return $this->iconic;
    }

    /**
     * Set number
     *
     * @param integer $number
     * @return Tree
     *
     */
    public function setNumber($number)
    {
        $this->number = $number;
        return $this;
    }

    /**
     * Get number
     * @return integer
     *
     */
    public function getNumber()
    {
        return $this->number;
    }

    /**
     * Set employee
     *
     * @param Entities\Employee $employee
     * @return Investigation
     */
    public function setEmployee(\Entities\Employee $employee = null)
    {
        $this->employee = $employee;
        return $this;
    }

    /**
     * Get employee
     *
     * @return Entities\Employee
     */
    public function getEmployee()
    {
        return $this->employee;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set treespecie
     *
     * @param Entities\Treespecie $treespecie
     * @return Tree
     */
    public function setTreespecie(\Entities\Treespecie $treespecie = null)
    {
        $this->treespecie = $treespecie;
        return $this;
    }

    /**
     * Get treespecie
     *
     * @return Entities\Treespecie
     */
    public function getTreespecie()
    {
        return $this->treespecie;
    }

    /**
     * Set location
     *
     * @param Entities\Location $location
     * @return Tree
     */
    public function setLocation(\Entities\Location $location = null)
    {
        $this->location = $location;
        return $this;
    }

    /**
     * Get location
     *
     * @return Entities\Location
     */
    public function getLocation()
    {
        return $this->location;
    }

    /**
     * Set soil
     *
     * @param Entities\Soil $soil
     * @return Tree
     */
    public function setSoil(\Entities\Soil $soil = null)
    {
        $this->soil = $soil;
        return $this;
    }

    /**
     * Get soil
     *
     * @return Entities\Soil
     */
    public function getSoil()
    {
        return $this->soil;
    }

    /**
     * Add images
     *
     * @param Entities\Image $images
     * @return Tree
     */
    public function addImage(\Entities\Image $images)
    {
        $this->images[] = $images;
        return $this;
    }

    /**
     * Get images
     *
     * @return Doctrine\Common\Collections\Collection
     */
    public function getImages()
    {
        return $this->images;
    }
}